package com.lzj.demo.design.template;

public class TemplateModeTest {
    public static void main(String[] args) {
        //A公司测试
        AbstractMerchantService merchantService = new CompanyAServiceImpl("A");
        merchantService.workFlow();
        //B公司测试
        merchantService = new CompanyBServiceImpl("B");
        merchantService.workFlow();
    }
}
